package router

import (
	"api-client/basic/api/hander"
	"api-client/pkg"
	"github.com/gin-gonic/gin"
)

func LoadRand(r *gin.Engine) {
	api := r.Group("/api")
	{
		user := api.Group("/user")
		{
			user.POST("/sendSms", hander.SendSms)
			user.POST("/login", hander.Login)
			user.POST("/addMusic", hander.AddMusic)
			user.POST("/upload", hander.Upload)
			user.Use(pkg.JWTAuth("2211a"))
			user.POST("/info", hander.Info)
			user.POST("/addWork", hander.AddWork)
			user.POST("/addCommit", hander.AddCommit)

		}

	}

}
